package com.dao;

import com.bean.Accender;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface AccenderDao {

    @Select("select * from accender")
    List<Accender> queryAccenderList();

    @Select("select e_mail from accender where accender_name=#{username}")
    String queryEmailByName(@Param("username") String username);
}
